package com.boyon.common.status;

import java.util.ArrayList;
import java.util.List;

import com.boyon.common.domain.Value;

/**
 * ClassName:SystemType <br/>
 * Function: 系统类型. <br/>
 * Date: 2018年3月20日 下午3:54:43 <br/>
 * 
 * @author sunshulin
 * @version
 * @since JDK 1.8
 * @see
 */
public enum SystemType {

	user(2, "用户菜单"), manager(1, "管理菜单"), system(0, "系统菜单");

	private Integer val;

	private String desc;

	private static List<Value> list = new ArrayList<>();

	static {
		list.add(new Value(SystemType.system.val, SystemType.system.desc));
		list.add(new Value(SystemType.manager.val, SystemType.manager.desc));
		list.add(new Value(SystemType.user.val, SystemType.user.desc));
	}

	/**
	 * Creates a new instance of SystemType.
	 * 
	 * @param status
	 * @param desc
	 */
	private SystemType(Integer val, String desc) {
		this.val = val;
		this.desc = desc;
	}

	/**
	 * status.
	 * 
	 * @return the status
	 * @since JDK 1.8
	 */
	public Integer getVal() {
		return val;
	}

	/**
	 * desc.
	 * 
	 * @return the desc
	 * @since JDK 1.8
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * list.
	 * 
	 * @return the list
	 * @since JDK 1.8
	 */
	public static List<Value> getList() {
		return list;
	}
}
